package com.heima.utils.thredlocal;

import com.heima.model.wemedia.pojos.WmUser;

public class WmediaThredLocal  {
    private final  static  ThreadLocal<WmUser> WM_USER_ID = new ThreadLocal<>();

    public static void setUserId(WmUser userId){
        WM_USER_ID.set(userId);
    }

    public static WmUser getUserId(){
        return WM_USER_ID.get();
    }

    public static void removeUserId(){
        WM_USER_ID.remove();
    }
}
